package com.foreverwin.mes.production.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * <p>
 * 领料记录
 * </p>
 *
 * @author Ervin Chen
 * @since 2020-02-24
 */
@JsonIgnoreProperties(ignoreUnknown=true)
@TableName("Z_MATERIAL_REQUISITION_LOG")
public class MaterialRequisitionLog extends Model<MaterialRequisitionLog> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
   @TableId(value = "HANDLE", type = IdType.INPUT)
   private String handle;
    /**
     * 站点
     */
   @TableField("SITE")
   private String site;
    /**
     * 工单编号
     */
   @TableField("SHOP_ORDER")
   private String shopOrder;
    /**
     * 任务编号
     */
   @TableField("TASK_NO")
   private String taskNo;
    /**
     * 物料
     */
   @TableField("ITEM_BO")
   private String itemBo;
    /**
     * 物料单位
     */
   @TableField("UNIT_OF_MEASURE")
   private String unitOfMeasure;
    /**
     * 任务数量
     */
   @TableField("TASK_QTY")
   private Double taskQty;
    /**
     * 领用数量
     */
   @TableField("PICK_QTY")
   private Double pickQty;
    /**
     * 创建日期
     */
   @TableField("CREATED_DATE_TIME")
   private Date createdDateTime;
    /**
     * 更新日期
     */
   @TableField("UPDATED_DATE_TIME")
   private Date updatedDateTime;
    /**
     * 创建人员
     */
   @TableField("CREATE_USER_BO")
   private String createUserBo;
    /**
     * 更新人员
     */
   @TableField("UPDATE_USER_BO")
   private String updateUserBo;


   public String getHandle() {
      return handle;
   }

   public void setHandle(String handle) {
      this.handle = handle;
   }

   public String getSite() {
      return site;
   }

   public void setSite(String site) {
      this.site = site;
   }

   public String getShopOrder() {
      return shopOrder;
   }

   public void setShopOrder(String shopOrder) {
      this.shopOrder = shopOrder;
   }

   public String getTaskNo() {
      return taskNo;
   }

   public void setTaskNo(String taskNo) {
      this.taskNo = taskNo;
   }

   public String getItemBo() {
      return itemBo;
   }

   public void setItemBo(String itemBo) {
      this.itemBo = itemBo;
   }

   public String getUnitOfMeasure() {
      return unitOfMeasure;
   }

   public void setUnitOfMeasure(String unitOfMeasure) {
      this.unitOfMeasure = unitOfMeasure;
   }

   public Double getTaskQty() {
      return taskQty;
   }

   public void setTaskQty(Double taskQty) {
      this.taskQty = taskQty;
   }

   public Double getPickQty() {
      return pickQty;
   }

   public void setPickQty(Double pickQty) {
      this.pickQty = pickQty;
   }

   public Date getCreatedDateTime() {
      return createdDateTime;
   }

   public void setCreatedDateTime(Date createdDateTime) {
      this.createdDateTime = createdDateTime;
   }

   public Date getUpdatedDateTime() {
      return updatedDateTime;
   }

   public void setUpdatedDateTime(Date updatedDateTime) {
      this.updatedDateTime = updatedDateTime;
   }

   public String getCreateUserBo() {
      return createUserBo;
   }

   public void setCreateUserBo(String createUserBo) {
      this.createUserBo = createUserBo;
   }

   public String getUpdateUserBo() {
      return updateUserBo;
   }

   public void setUpdateUserBo(String updateUserBo) {
      this.updateUserBo = updateUserBo;
   }

   public static final String HANDLE = "HANDLE";

   public static final String SITE = "SITE";

   public static final String SHOP_ORDER = "SHOP_ORDER";

   public static final String TASK_NO = "TASK_NO";

   public static final String ITEM_BO = "ITEM_BO";

   public static final String UNIT_OF_MEASURE = "UNIT_OF_MEASURE";

   public static final String TASK_QTY = "TASK_QTY";

   public static final String PICK_QTY = "PICK_QTY";

   public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";

   public static final String UPDATED_DATE_TIME = "UPDATED_DATE_TIME";

   public static final String CREATE_USER_BO = "CREATE_USER_BO";

   public static final String UPDATE_USER_BO = "UPDATE_USER_BO";

   @Override
   protected Serializable pkVal() {
      return this.handle;
   }

   @Override
   public String toString() {
      return "MaterialRequisitionLog{" +
         "handle = " + handle +
         ", site = " + site +
         ", shopOrder = " + shopOrder +
         ", taskNo = " + taskNo +
         ", itemBo = " + itemBo +
         ", unitOfMeasure = " + unitOfMeasure +
         ", taskQty = " + taskQty +
         ", pickQty = " + pickQty +
         ", createdDateTime = " + createdDateTime +
         ", updatedDateTime = " + updatedDateTime +
         ", createUserBo = " + createUserBo +
         ", updateUserBo = " + updateUserBo +
         "}";
   }
}